// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import Vue from 'vue';
// import App from './App';
// import router from './router';

// Vue.config.productionTip = false;

// /* eslint-disable no-new */
// new Vue({
//   el: '#app',
//   router,
//   components: { App },
//   template: '<App/>',
// });

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';

Vue.config.productionTip = false;

/* eslint-disable no-new */
Vue.component('toDoList', {
  render(createElement) {
    let file = './test.vue';
    const component = import(`${file}`);
    // const ele = createElement('div', [createElement(component.default)]);
    const ele = createElement(component.default);
    // const ele = createElement('div', '你好！');
    return ele;
  },
});
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  methods: {
    // toggle: (todo) => {
    //   // todo.done = !todo.done;
    // },
  },
});

